package com.dstz.demo.rest.controller;

import com.dstz.base.rest.BaseController;
import com.dstz.demo.core.manager.ParametersetManager;
import com.dstz.demo.core.model.Parameterset;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/sys/parameterset")
public class ParametersetController extends BaseController<Parameterset> {
    @Resource
    ParametersetManager parametersetManager;
    @Override
    protected String getModelDesc() {
        return null;
    }
    @PostMapping("/getlist")
    public List<Parameterset> getlist(){
        List<Parameterset> list=parametersetManager.findlist();
        return list;
    }
}
